﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FCMS.Attributes
{
    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
    public class AttachBinderDataAttribute : Attribute
    {
        public AttachBinderDataAttribute(string name) : this(name, name) { }

        public AttachBinderDataAttribute(string name, string value) : this(name, value, 0) { }

        public AttachBinderDataAttribute(string name, string value, int order)
        {
            this.Name = name;
            this.Value = value;
            this.Order = order;
        }

        public string Name { get; private set; }

        public string Value { get; private set; }

        public int Order { get; private set; }
    }
}
